﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Newtonsoft.Json;
using Megaplan.API.Extentions;

namespace Megaplan.API.Models
{
    /// <summary>
    /// http://wiki.megaplan.ru/API_project_list
    /// Сотрудник
    /// </summary>
    public class Project : ProjectBase
    {
        [JsonProperty]
        public string Status { get; set; }

        [JsonProperty]
        [JsonConverter(typeof(DeadLineConverter))]
        public DateTime? Deadline { get; set; }

        [JsonProperty]
        public People Owner { get; set; }

        [JsonProperty]
        public People Responsible { get; set; }

        [JsonProperty]
        public TaskBase SuperProject { get; set; }

        [JsonProperty]
        public string Favorite { get; set; }

        [JsonProperty]
        public DateTime TimeCreated { get; set; }

        [JsonProperty]
        public DateTime TimeUpdated { get; set; }

        [JsonProperty]
        public Tag[] Tags { get; set; }

        [JsonProperty]
        public DateTime Start { get; set; }

        [JsonProperty]
        public DateTime Activity { get; set; }

        //[JsonProperty]
        //public string[] Actions { get; set; }

        [JsonProperty]
        public bool IsOverdue { get; set; }
    }
}